<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@include file="/include/common/griduihead1.jsp"%>
<%
	page1.setLayout("border");
	page1.setSupportIframe(true);
	page1.getLayoutConfig().Append(",east__size:'50%'");
%>
<%@include file="/include/common/griduihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("有權限人員");
	page1.setFilterEnab(false);
%>
<jm:form>
<jm:layout postion="north">
	<jm:toolbar saveDisabled="false" deleteDisabled="false"
		 searchEnab="false" newEnab="false"  cancelEnab="false" copyEnab="false" startEnab="false" checkEnab="false" exportEnab="false" printEnab="false" helpEnab="false"/>
	<jm:error></jm:error>
	
	 <jm:dp id="dp1" data="<%=Utils.TAG_FORM%>" tabSize="0" layout="false">
	    <jm:tab colModel="300px;*">
	    	<jm:group captionDisplay="false" colspan="2" hidden="true">
	    		<input name="pan_subpro_menusn" type="text" >
	    		<input name="hrnums" type="text" >
	    		
	    		<input type="text" name="chname2" caption="chname2"/>
	    	</jm:group>
	    	 <jm:field caption="工號" required="true" name="hrnum2" >
				<input type="text" name="hrnum2" caption="工號" 
					onchange="if(this.value.trim() != ''){$P.cmp({me:this,cmpid:'cmp001',hrnum:this.value,async:false});}else{$('input[name=chname2]').val('');$('span[id=chname2]').text('');}" 
					ajaxsucc="$('input[name=chname2]').val(jo.data['chname']);$('span[id=chname2]').text(jo.data['chname']);"
					ajaxfail="$('input[name=chname2]').val('');$('span[id=chname2]').text('');me.value='';" width="150px" />
				&nbsp;<span id="chname2" bind="true"></span>
			</jm:field>
	    </jm:tab>
	</jm:dp>
</jm:layout>
<jm:layout postion="center">
	<jm:table id="grid1" dataSet="<%=ret.gpov("rs1")%>">
	<jm:thead >
		<tr><td colspan="5" style="font-size: 12px;font-weight: bold;">已選工號</td></tr>
		<tr>
			<td width="30px">選</td>
			<td width="100px">工號</td>
			<td width="100px">姓名</td>
			<td width="100px">部門</td>
			<td width="*">公司別</td>
		</tr>
	</jm:thead>
	<jm:tbody>
		<jm:tr>
			<jm:td>
				<input type="checkbox" name="key1" value="<%=ret.grsv("hrnum")%>">
			</jm:td>
			<jm:td cid="hrnum"></jm:td>
			<jm:td cid="chname"></jm:td>
			<jm:td cid="hr003name"></jm:td>
			<jm:td cid="hr003aname"></jm:td>
		</jm:tr>
	</jm:tbody>
</jm:table>
</jm:layout>
<jm:layout postion="east">
	<jm:table id="grid2" dataSet="<%=ret.gpov("rs2")%>">
		<jm:thead >
			<tr><td colspan="5" style="font-size: 12px;font-weight: bold;">可選工號</td></tr>
			<tr>
				<td width="30px">選</td>
				<td width="100px">工號</td>
				<td width="100px">姓名</td>
				<td width="100px">部門</td>
				<td width="*">公司別</td>
			</tr>
		</jm:thead>
		<jm:tbody>
			<jm:tr>
				<jm:td>
					<input type="checkbox" name="key2" value="<%=ret.grsv("hrnum")%>">
				</jm:td>
				<jm:td cid="hrnum"></jm:td>
				<jm:td cid="chname"></jm:td>
				<jm:td cid="hr003name"></jm:td>
				<jm:td cid="hr003aname"></jm:td>
			</jm:tr>
		</jm:tbody>
	</jm:table>
</jm:layout>
</jm:form>
<jm:script><script type="text/javascript" charset="UTF-8">
</script></jm:script>
<%@include file="/include/common/griduiend.jsp"%>
